package com.pktechan.manage.service.impl;

import com.pktechan.manage.dao.SendMessageMapper;
import com.pktechan.manage.sendMiniMessage.bean.DistributorCarriageConfirmMessage;
import com.pktechan.manage.sendMiniMessage.bean.ReferrerCommissionConfirmMessage;
import com.pktechan.manage.service.SendMessageService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: cloudfloating
 * @description:
 * @author: qx.zhang
 * @create: 2021-06-18 17:43
 **/
@Service("sendMessageService")
public class SendMessageServiceImpl implements SendMessageService {

    private static final Logger logger = LoggerFactory.getLogger(SendMessageServiceImpl.class);

    @Autowired
    private SendMessageMapper sendMessageMapper;

    /**
     * 推荐人佣金确认消息
     *
     * @param commissionWithdrawFlowId
     * @return
     */
    @Override
    public ReferrerCommissionConfirmMessage getReferrerCommissionConfirmMessage(Integer commissionWithdrawFlowId) {
        return sendMessageMapper.getReferrerCommissionConfirmMessage(commissionWithdrawFlowId);
    }

    /**
     * 配送商运费确认消息
     *
     * @param custCarriageFlowId
     * @return
     */
    @Override
    public DistributorCarriageConfirmMessage getDistributorFreightConfirmMessage(Integer custCarriageFlowId) {
        return sendMessageMapper.getDistributorFreightConfirmMessage(custCarriageFlowId);
    }
}
